home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Documentation / Books / Learn Java on the Macintosh / Learn Java Projects / 07.02 - init / InitMethod.java < prev    next >
Text File  |  1996-04-22  |  706b  |  31 lines

  1. /* -------------------------------------------------------------
  2. This applet invokes methods when it initializes.
  3.  
  4. Java's classes: Applet    (applet)
  5.                 System    (lang)     
  6.                 
  7. Custom classes: InitMethod
  8.  
  9. ------------------------------------------------------------- */
  10. public class InitMethod extends java.applet.Applet {
  11.  
  12.    public void init() {
  13.       System.out.println("init()");
  14.       setUpGUI();
  15.    }
  16.    
  17.    void setUpGUI() {
  18.       System.out.println("setUpGUI()");
  19.       makeWindow1();
  20.       makeWindow2();
  21.    }
  22.    
  23.    void makeWindow1() {
  24.       System.out.println("makeWindow1()");
  25.    }
  26.    
  27.    void makeWindow2() {
  28.       System.out.println("makeWindow2()");
  29.    }
  30. }
  31.